
<%@ page import="books4africa.Donation" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'donation.label', default: 'Donation')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-donation" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-donation" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list donation">
			
				<g:if test="${donationInstance?.donationDate}">
				<li class="fieldcontain">
					<span id="donationDate-label" class="property-label"><g:message code="donation.donationDate.label" default="Donation Date" /></span>
					
						<span class="property-value" aria-labelledby="donationDate-label"><g:formatDate date="${donationInstance?.donationDate}" type="date" style="MEDIUM"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${donationInstance?.book}">
				<li class="fieldcontain">
					<span id="book-label" class="property-label"><g:message code="donation.book.label" default="Book" /></span>
					
						<span class="property-value" aria-labelledby="book-label"><g:link controller="books" action="show" id="${donationInstance?.book?.id}">${donationInstance?.book?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${donationInstance?.bookQty}">
				<li class="fieldcontain">
					<span id="bookQty-label" class="property-label"><g:message code="donation.bookQty.label" default="Book Qty" /></span>
					
						<span class="property-value" aria-labelledby="bookQty-label"><g:fieldValue bean="${donationInstance}" field="bookQty"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${donationInstance?.donor}">
				<li class="fieldcontain">
					<span id="donor-label" class="property-label"><g:message code="donation.donor.label" default="Donor" /></span>
					
						<span class="property-value" aria-labelledby="donor-label"><g:link controller="user" action="show" id="${donationInstance?.donor?.id}">${donationInstance?.donor?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
			</ol>
		</div>
	</body>
</html>
